<?php
include("../utility/connection.php");
session_start();

if($_SERVER["REQUEST_METHOD"] == "POST") {
    $CheckToBuy = '';
    if (isset($_SESSION['checkToBuy'])) {
        $CheckToBuy = $_SESSION['checkToBuy'];
    }
    $CheckToBuy1 = $_POST["hidCheckToBuy"].$CheckToBuy;
    $_SESSION['checkToBuy'] = $CheckToBuy1;
    
    //echo '$CheckToBuy1: '.$CheckToBuy1;
    header("location: ../catalog.php");
}
?>
